<template>
  <el-table ref="table" :data="list" style="width: 100%;margin-top:30px;" border="border">
    <!-- 序号 -->
    <el-table-column align="center" label="序号" min-width="90" fixed>
      <template slot-scope="scope">
        {{ scope.$index + 1 }}
      </template>
    </el-table-column>
    <!-- 姓名 -->
    <el-table-column align="center" label="姓名" min-width="95">
      <template slot-scope="scope">
        <el-input
          v-model="scope.row.p_name"
          placeholder="请输入球员姓名"
          maxlength="60"
          show-word-limit
        />
      </template>
    </el-table-column>
    <!-- 学号 -->
    <el-table-column align="center" label="学号" min-width="110">
      <template slot-scope="scope">
        <el-input
          v-model="scope.row.st_id"
          placeholder="请输入球员学号"
          maxlength="20"
          show-word-limit
        />
      </template>
    </el-table-column>
    <!-- 球衣号 -->
    <el-table-column align="center" label="球衣号" min-width="85">
      <template slot-scope="scope">
        <el-input
          v-model="scope.row.p_number"
          placeholder="请输入球员球衣号"
          maxlength="20"
          show-word-limit
        />
      </template>
    </el-table-column>
    <!-- 是否购买保险 -->
    <el-table-column align="center" label="是否购买保险" min-width="85">
      <template slot-scope="scope">
        <el-radio-group v-model="scope.row.is_insurance">
          <el-radio :label="1">是</el-radio>
          <el-radio :label="0">否</el-radio>
        </el-radio-group>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: 'PlayerInformation',
  props: {
    initList: {
      type: Array,
      required: true
    }
  },
  data() {
    return {
      list: this.initList
    }
  }
}
</script>

<style scoped>

</style>
